﻿using Bricks.Business.Models.Account;
using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bricks.Business.Service
{
    public interface IActionInfoService
    {
        #region 属性
        /// <summary>
        /// 获取 功能信息查询数据集
        /// </summary>
        IQueryable<ActionInfo> Actions { get; }
        #endregion

        #region 公共方法
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Add(ActionInfo model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Modify(ActionInfo model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult Delete(Guid id);

        /// <summary>
        /// 排序设置(向上向下)
        /// </summary>
        /// <param name="id"></param>
        /// <param name="pid"></param>
        /// <param name="upOrDown"></param>
        /// <returns></returns>
        OperationResult SetOrder(Guid id, string upOrDown);
        #endregion
    }
}
